package com.zhiche.lisa.bms.service.fee;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.zhiche.lisa.bms.dao.model.fee.FeeReceivable;
import com.zhiche.lisa.bms.pojo.dto.util.LspBasicDTO;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 应收账款 服务类
 * </p>
 *
 * @author qichao
 * @since 2018-09-05
 */
public interface FeeReceivableService extends IService<FeeReceivable> {

	/**
	 * 应收账款分页查询
	 *
	 * @param page
	 * @return
	 */
	Page<FeeReceivable> lisaFeeReceivableLinePage(Page<FeeReceivable> page);

	/**
	 * 查询
	 *
	 * @return
	 */
	List<FeeReceivable> selectContractCode();

	/**
	 * 获取承运商名称
	 *
	 * @param authorization
	 * @return
	 */
	List<LspBasicDTO> queeryLspNameByLspId(String authorization);

	/**
	 * 新增应收账款
	 *
	 * @param lisaFeeReceivable
	 * @param token
	 * @return
	 */
	List<Long> insertFeeReceivablebms(List<FeeReceivable> lisaFeeReceivable, String token);

	/**
	 * 根据id返回sum价格结果
	 *
	 * @param ids
	 * @return
	 */
	BigDecimal querySumNoTenant(List<Long> ids);

	/**
	 * 得到查询条件得到应收账款
	 *
	 * @param ew
	 * @return
	 */
	List<FeeReceivable> getFeeReceivableList(EntityWrapper<FeeReceivable> ew);
}
